<template>
  <div id="app">
    <!-- Canvas启动动画 -->
    <SplashAnimation />
    
    <!-- 主应用 -->
    <div class="main-app">
      <el-container>
        <el-header>
          <Header />
        </el-header>
        <el-main>
          <router-view />
        </el-main>
        <el-footer>
          <Footer />
        </el-footer>
      </el-container>
    </div>
  </div>
</template>

<script>
import { ref, onMounted } from 'vue'
import Header from './components/Header.vue'
import Footer from './components/Footer.vue'
import SplashAnimation from './components/SplashAnimation.vue'

export default {
  name: 'App',
  components: {
    Header,
    Footer,
    SplashAnimation
  }
}
</script>

<style>
#app {
  font-family: Arial, sans-serif;
}

.el-header {
  padding: 0;
}
.el-footer {
  background: #f5f5f5;
  text-align: center;
  padding: 20px;
}
</style>